package com.visionet.waveletData.web.entity.account;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.visionet.waveletData.web.entity.IdEntity;

/**
 * 角色.
 * 
 * @author xt
 */
@Entity
@Table(name = "w_resource")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Resource extends IdEntity {

	private String name;
	private String hyperlink;
	private Integer type;
	private Float position;
	private Date createDate;
	private String permission;
    private String oldlink;
    private String icon;
    

	

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHyperlink() {
		return hyperlink;
	}

	public void setHyperlink(String hyperlink) {
		this.hyperlink = hyperlink;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Float getPosition() {
		return position;
	}

	public void setPosition(Float position) {
		this.position = position;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


    public String getOldlink() {
        return oldlink;
    }

    public void setOldlink(String oldlink) {
        this.oldlink = oldlink;
    }

    public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
